<!DOCTYPE html>
{% from "macros.html" import menu %}
<html lang="en">
<head>
    <style>
        h1{
            text-align: center;
        }
        #user_online{
            float: right;
            margin-right: 3px;
        }
        table{
            margin:auto;
        }
    </style>
    <link rel="stylesheet" href="{{ url_for ('static',filename='css/bootstrap.css')}}">
    <link rel="stylesheet" href="{{ url_for ('static',filename='css/flask.css')}}">
    <meta charset="UTF-8">
    <title>sendmessage</title>
</head>
<body>
{{ menu(post_name,online) }}
{#<h1>阳光婚姻信息匹配管理系统</h1>#}
{#<div class="navbar-collapse collapse" id="menu">#}
{#    <ul class="nav navbar-nav">#}
{#        <li><a href="{{ url_for('regist') }}">注册页面</a></li>#}
{#        <li><a href="{{ url_for('login') }}">切换账号</a></li>#}
{#        <li><a href="{{ url_for('article') }}">回到首页</a></li>#}
{#        <li><a href="{{ url_for('information') }}">个人信息</a></li>#}
{#        <li id="selectmenu">#}
{#            <a>信息匹配</a>#}
{#            <ul id="selects" style="display: none">#}
{#                <li><a href="{{ url_for('sysselect') }}">系统匹配</a></li>#}
{#                <li><a href="{{ url_for('appointselect') }}">指定匹配</a></li>#}
{#            </ul>#}
{#        </li>#}
{#        <li id="messagemenu">#}
{#            <a>消息中心</a>#}
{#            <ul id="selects2" style="display: none">#}
{#                <li><a href="{{ url_for('sendmessage') }}">发送消息</a></li>#}
{#                <li><a href="{{ url_for('acceptmessage') }}">接受消息</a></li>#}
{#            </ul>#}
{#        </li>#}
{#        <li><a href="{{ url_for('addarticle') }}">上传话题</a></li>#}
{#    </ul>#}
{#    <h4 id="user_online">{{ post_name }}{{ online }}</h4>#}
{#    <br><br><br><br><br>#}
{#</div>#}
<form action="" method="post">
    <tr>
        <td>发消息对象的username</td>
        <td><input type ='acceptname' name="accept"></td>
    </tr>
    <tr>
        <td>消息内容</td>
        <td><input type ='text' name="content" id="messageinput"></td>
    </tr>
    <tr>
        <td></td>
        <td><input type="submit" value="发送"></td>
    </tr>
</form>
</body>
<script type="text/javascript">
    window.onload = function(){
        var selectmenu = document.getElementById("selectmenu");
        var selects = document.getElementById("selects");
        selectmenu.onmouseover = function(){
            selects.style.display = "block";
        }
        selectmenu.onmouseout = function(){
            selects.style.display = "none";
        }

        var messagemenu = document.getElementById("messagemenu");
        var selects2 = document.getElementById("selects2");
        messagemenu.onmouseover = function(){
            selects2.style.display = "block";
        }
        messagemenu.onmouseout = function(){
            selects2.style.display = "none";
        }

        var userstate = document.getElementById("userstate");
        var down = document.getElementById("down");
        userstate.onmouseover = function(){
            down.style.display = "block";
        }
        userstate.onmouseout = function(){
            down.style.display = "none";
        }
    }
</script>
</html>